package com.ys.erp.stage_mall_service.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author lwj
 * @date 2023/5/5
 */
@Data
@Accessors(chain = true)
@Schema(description = "订单下商品返回对象")
public class OrderGoodsVO {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "商品图片")
    private String goodsPic;

    @Schema(description = "商品名字")
    private String goodsName;

    @Schema(description = "规格")
    private String goodsSpecs;

    @Schema(description = "小计")
    private String subtotal;

    @Schema(description = "折扣金额")
    private String discountMoney;

    @Schema(description = "物流费用")
    private String deliveryMoney;

    @Schema(description = "购买数量")
    private Integer goodsCount;

    @Schema(description = "商品重量")
    private String goodsWeight;

    @Schema(description = "是否发货")
    private Integer isSendGoods;

    @Schema(description = "快递名字")
    private String expressName;

    @Schema(description = "是否售后")
    private Integer isAfterSale;

    @Schema(description = "售后时间")
    private LocalDateTime afterSaleTime;

    @Schema(description = "售后状态售后状态：0：待审核，1：待买家处理，2：待卖家处理，3：已完成")
    private Integer afterSaleStatus;

    @Schema(description = "是否同意售后")
    private Integer isAgreeAfterSale;

    @Schema(description = "快递id")
    private String expressId;

    @Schema(description = "发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendGoodsTime;

}
